﻿<UserControl
    x:Class="CeBIT2010.SmallSessionDisplay"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    xmlns:my="clr-namespace:TheOliver.DigitalSignage.Common;assembly=TheOliver.DigitalSignage.Common"
    d:DesignWidth="400" Width="250" d:DesignHeight="188">
    <UserControl.Resources>
        <my:TimeConverter
            x:Key="_timeConverter" />
    </UserControl.Resources>
    <StackPanel x:Name="LayoutRoot" Margin="0">
		<StackPanel Height="60" Orientation="Horizontal">
			<Grid
				x:Name="_logoGrid"
				Width="70" VerticalAlignment="Top" Height="49" />
			<StackPanel Orientation="Vertical" Margin="4,0,0,0">
				<TextBlock
					x:Name="_startTime"
					FontSize="18.667"
					TextWrapping="Wrap"
					Text="{Binding SlotTime, ConverterParameter=HH:mm, Converter={StaticResource _timeConverter}}"
					HorizontalAlignment="Left" />
				<StackPanel
					x:Name="_speaker"
					Orientation="Horizontal" VerticalAlignment="Top" HorizontalAlignment="Right" Margin="0">
					<TextBlock
						x:Name="_speakerFirstName"
						FontSize="16"
						TextWrapping="Wrap"
						Text="{Binding SpeakerFirstname}"
						d:LayoutOverrides="Width" />
					<TextBlock
						x:Name="_speakerLastName"
						FontSize="16"
						TextWrapping="Wrap"
						Text="{Binding SpeakerLastname}"
						Margin="5,0,0,0"
						d:LayoutOverrides="Width" />
				</StackPanel>
			</StackPanel>
		</StackPanel>
		<TextBlock
			x:Name="_sessionShortTitle"
			FontSize="18.667"
			TextWrapping="Wrap"
			Text="{Binding SessionShortTitle}" />
	</StackPanel>
</UserControl>
